package cn.yunhe.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.dao.TypeDao;
import cn.yunhe.entity.Type;
import cn.yunhe.service.TypeService;

@Service("typeService")
public class TypeServiceImpl implements TypeService {
	@Autowired
	private TypeDao typeDao;

	/*
	 * 查新药品类别 (non-Javadoc)
	 * 
	 * @see cn.yunhe.service.TypeService#selectType()
	 */
	@Override
	public List<Type> selectType() {

		return typeDao.selectType();
	}

	public TypeDao getTypeDao() {
		return typeDao;
	}

	public void setTypeDao(TypeDao typeDao) {
		this.typeDao = typeDao;
	}

	@Override
	public int insertType(Type type) {

		return typeDao.insertType(type);
	}

	@Override
	public int updateType(Type type) {

		return typeDao.updateType(type);
	}

	@Override
	public int updateDeleateType(Type type) {

		return typeDao.updateDeleateType(type);
	}

	@Override
	public List<Type> selectSuppAndType(String tname) {
		// TODO Auto-generated method stub
		return typeDao.selectSuppAndType(tname);
	}

}
